<div ng-controller="headerCtrl">
{if $_GPC['iseditor']}
<!--页面标题设置-->
	<div class="app-header-setting">
		<div class="arrow-left"></div>
		<div class="app-header-setting-inner ">
			<div class="panel panel-default">
				<div class="panel-body form-horizontal">
					<div class="form-group">
						<label class="col-xs-3 control-label"><span class="red">*</span> 页面名称</label>
						<div class="col-xs-9">
							<input type="text" ng-model="activeItem.params.title" placeholder="微页面标题" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-xs-3">背景图片</label>
						<div class="col-xs-9">
							<span ng-click="addThumb('bgImage')"><i class="fa fa-plus-circle green"></i>&nbsp;选择图片</span>
							<div style="margin-top:.5em;" class="input-group" ng-show="activeItem.params.bgImage">
								<img width="150" class="img-responsive img-thumbnail" ng-src="{{activeItem.params.bgImage}}" />
								<em ng-click="activeItem.params.bgImage = '';" title="删除这张图片" style="position:absolute; top: 0px; right: -14px;" class="close">×</em>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-3 control-label">触发关键字</label>
						<div class="col-xs-9">
							<input type="text" ng-model="activeItem.params.keyword" class="form-control">
							<span class="help-block">用户触发关键字，系统回复此页面的图文链接</span>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-xs-3">封面</label>
						<div class="col-xs-9">
							<span ng-click="addThumb('cover')"><i class="fa fa-plus-circle green"></i>&nbsp;选择图片</span>
							<div style="margin-top:.5em;" class="input-group" ng-show="activeItem.params.cover">
								<img width="150" class="img-responsive img-thumbnail" ng-src="{{activeItem.params.cover}}" />
								<em ng-click="activeItem.params.cover = '';" title="删除这张图片" style="position:absolute; top: 0px; right: -14px;" class="close">×</em>
							</div>
							<span class="help-block">用于用户触发关键字后，系统回复时的封面图片</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-xs-3 control-label">页面描述</label>
						<div class="col-xs-9">
							<input type="text" ng-model="activeItem.params.description" class="form-control">
						</div>
					</div>
					<div class="shopNav-edit-header clearfix">
						个人中心扩展菜单
					</div>
					<!--微信公众号自定义菜单模板:shopNav-wx-->
					<div class="shopNav-wx">
						<div class="card" ng-repeat="menu in activeMenus">
							<div class="btns">
								<a href="javascript:;" ng-click="removeMenu(menu)"><i class="fa fa-times"></i></a>
							</div>
							<div class="nav-region">
								<div class="first-nav">
									<div class="alert">
										<div class="form-group">
											<label class="control-label col-xs-3">标题</label>
											<div class="col-xs-9">
												<div class="input-group">
													<input type="text" class="form-control" name="" value="" ng-model="menu.name" />
													<span class="input-group-btn">
														<button ng-click="showIconBrowser(menu)" type="button" class="btn btn-default">选择图标</button>
													</span>
												</div>
											</div>
										</div>
										<div class="form-group">
											<label class="control-label col-xs-3">链接到</label>
											<div class="col-xs-9 ">
												<div ng-my-linker ng-my-url="menu.url" ng-my-title="menu.name"></div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="add-shopNav text-center" ng-click="addMenu();">+添加一级导航</div>
						<!--最多添加三个导航-->
					</div>
					<!--end微信公众号自定义菜单模板-->
				</div>
			</div>
		</div>
	</div>
{else}
	<div class="title">
		<h1><span>{{module.params.title}}</span></h1>
	</div>
	<div class="head" style="background-repeat:no-repeat; background-position: center center;" ng-style="{'background-image' : module.params.bgImage ? 'url(' + module.params.bgImage + ')' : 'url(\'./resource/images/app/head-bg.png\')'}">
		<a class="ptool" href="{php echo url('mc/profile')}"><i class="fa fa-cog fa-spin"></i></a>
		<div class="pdetail">
			<div class="img-circle"><img src="{if !empty($profile['avatar'])}{php echo tomedia($profile['avatar']);}{else}{$_W['siteroot']}/app/resource/images/heading.jpg{/if}"></div>
			<div class="pull-left">
				<span class="name"><a href="javascript:;" style="color:red;">设置昵称</a></span>
				<span class="type"><i class="fa fa-certificate"></i> 默认会员组</span>
				<span class="type"><i class="fa fa-flag-o"></i> 会员UID: 8888</span>
			</div>
		</div>
		<div class="head-nav">
			<a class="head-nav-list" href="{php echo url('activity/coupon/mine');}">折扣券<span>5</span></a>
			<a class="head-nav-list" href="{php echo url('activity/token/mine');}">代金券<span>7</span></a>
			<a class="head-nav-list" href="{php echo url('mc/bond/credits', array('credittype' => $behavior['activity']));}">积分<span>900.00</span></a>
			<a class="head-nav-list" href="{php echo url('mc/bond/credits', array('credittype' => $behavior['currency']));}">余额<span>4000.00</span></a>
		</div>
	</div>
{/if}
</div>